package com.itheima.store.dao;


import com.itheima.store.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface ProductDao {
    List<Product> findNew();

    List<Product> findHot();

    Product getProductById(String pid);

    long totalCount(String cid);

    List<Product> pageAll(String cid);

    List<Product> findAll();


    int addProduct(Product product);
}
